﻿using HPITSSBLL;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace HPITSS.MyHandler
{
    /// <summary>
    /// DelTruckHandle 的摘要说明
    /// </summary>
    public class DelTruckHandle : IHttpHandler
    {

        public void ProcessRequest(HttpContext context)
        {
            context.Response.ContentType = "text/plain";
            //context.Response.Write("Hello World");
            string TruckID = context.Request.QueryString["TruckID"];
            Boolean b = TruckBLL.DelTruck(TruckID);
            if (b == true)
            {
                context.Response.Redirect("/Truck.aspx");
            }
        }

        public bool IsReusable
        {
            get
            {
                return false;
            }
        }
    }
}